#ifndef GAME_BLOCK_H_
#define GAME_BLOCK_H_
#include "game_part.h"
class Game_Block : public Game_Part{
private:
	unsigned int timer_tick;
	double left_dx,left_dy;
	double mid_dx,mid_dy;
	double right_dx,right_dy;
	double left_dw,mid_dw,right_dw;
	Sence_Config* p_config;
	vector<SDL_Surface*> left_pictures;
	vector<SDL_Surface*> mid_pictures;
	vector<SDL_Surface*> right_pictures;
	list<Pic*> blocks;
public:
	Game_Block(Sence_Config* config);
	virtual ~Game_Block();
	virtual bool TimerTick();
	virtual void UpdateToScreen();
private:
	void initialBlocks();
	void computeDxDyDw();
	void moveNext();
	void addLeftBlock();
	void addMidBlock();
	void addRightBlock();
};
#endif

